<?
include('login.php');

//clear cookie jar
$cjar=fopen('cookies.txt','w');
fwrite($cjar, '');
fclose($cjar);

login_msnlive('user@hotmail.com', 'password');

$testcred = mycurl_crawl_url('testcred', 'www.live.com');
if(!strpos($testcred, "Sign out"))	print "login failed!\n";
else	print "login successful!\n";
?>